﻿namespace Zero.WebAPI.Framework.Common
{
    public class ProxySetting
    {
        // 是否使用代理
        public bool UseProxy { get; set; }

        // 代理协议
        public string Protocol { get; set; }

        // 代理地址
        public string Address { get; set; }

        // 端口
        public string Port { get; set; }

        // 身份信息
        public ProxyCredentials ProxyCredentials { get; set; }
    }

    public class ProxyCredentials
    {
        public string UserName { get; set; }
        public string Password { get; set; }
    }
}
